<?php
require_once 'ActionFramework/inputs.php';

class EmailInputTestCase extends PHPUnit_Framework_TestCase
{
    public function testEmail()
    {
    	$input = new EmailInput('DUMMY_NAME', 'Dummy name');
    	
    	$result = $input->validate('eiwlfwiefj.lw');
    	$this->assertFalse($result['valid']);
    	
    	$result = $input->validate('eiwlfwi@efj.lw');
    	$this->assertTrue($result['valid']);
    }
}